<?php echo $javascript->link('sites-index',false) ?>
<script>
var baseurl="<?php e(Configure::read('App.baseUrl'))?>";
</script>
 <div id="headbar">
      <ul >
      <li><a href='' id='delm'>批量删除</a></li>   
      </ul>
 </div>
 <div id='content'>
 <table width="96%" class='list'>
 <tr>
    <th width="5%" class='rowhead'>ID</th><th>用户名称</th><th width="30%">注册日期</th>
    <th width="30%">是否管理员</th>
    <th width="15%">操作</th>
 </tr>
<?php
    $baseurl=Configure::read('App.baseUrl');
    $rownum=0;
    foreach($ul as $user){
        if($user['User']['admin_leve'] > 0)
            $adm='是';
        else
            $adm='否';
        if($rownum % 2 == 0)
            e('<tr>');
       else
            e('<tr class="odd">');
        e("<td class='rowhead'>{$user['User']['id']}</td><td class='leftalign'>{$user['User']['username']}</td>
        <td class='leftalign'>{$user['User']['created']}</td>
        <td class='leftalign'>{$adm}</td><td><input type='checkbox' value={$user['User']['id']}
        <a href='{$baseurl}userManager/del/{$user['User']['id']}'>删除</a>
        <a href='{$baseurl}userManager/edit/{$user['User']['id']}'>编辑</a></td>");
        e('</tr>');
        $rownum++;
    }
?>
<tr><td colspan="5" style='text-align:right'><b>第
<?php 
 $cstr=$paginator->counter();
 $cstr=str_replace(' of ','页/共',$cstr);
 e($cstr);
?>
页
&nbsp
<?php e($paginator->prev('<<上一页')) ?>|
<?php e($paginator->numbers())?>|
<?php e($paginator->next('下一页>>')) ?>
</b>
</td></tr>
 </table>
 </div>
              
